import sys,time

str_time='2016/7/16 21:31:00'
tt=time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.mktime(time.strptime(str_time,'%Y/%m/%d %H:%M:%S'))))
print tt
print type(tt)
exit()
try:
    time1=time.mktime(time.strptime(str_time,'%Y-%m-%d %H:%M:%S'))
except Exception,e:
    pass
print time1
exit()

str='test'
print str.find('t')

di={'item1':'beijing','item2':'shanghai'}

print di.get('item3')
if di.get('ee')==None:
    print 'no'
else:
    print 'ok'

#str=''

try:
    if str:
        print 'no'
    else:
        print 'ok'
except Exception,e:
    print e
    info=sys.exc_info()
    print info
finally:
    print '----------'